package com.motong.gongdan.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("bad_product")
public class BadProduct  extends PublicPo{
    @ExcelIgnore
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ExcelProperty(value = "序号",index = 0)
    @TableField(exist = false)
    private Integer serialNum;

    @ExcelProperty(value = "不良品项编号",index = 1)
    @ColumnWidth(50)
    private String code;
    @ExcelProperty(value = "不良品项名称",index = 2)
    @ColumnWidth(50)
    private String name;

    @ExcelIgnore
    @TableField("create_time")
    private Date createTime;
    @ExcelIgnore
    @TableField("update_time")
    private Date updateTime;
}
